package com.jdym.back.service.impl;

import com.jdym.back.entity.CoBank;
import com.jdym.back.mapper.CoBankMapper;
import com.jdym.back.service.CoBankService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 合作银行表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
@Service
public class CoBankServiceImpl extends ServiceImpl<CoBankMapper, CoBank> implements CoBankService {
    @Autowired
    CoBankMapper coBankMapper;
    @Override
    public CoBank updateByID(int id) {
        return coBankMapper.updateByID(id);
    }

    @Override
    public List<CoBank> select(int cobankId) {
        return coBankMapper.select(cobankId);
    }

    @Override
    public CoBank selectByID(int id) {
        return coBankMapper.selectByID(id);
    }

    @Override
    public CoBank insert() {
        return coBankMapper.insert();
    }

    @Override
    public void insertCoBank(CoBank coBank) {
        coBankMapper.insertCoBank(coBank);
    }

}
